<div class="bjui-pageContent">
<form action="">
<style>
    .bjui-row {
        letter-spacing: -1px;
    }
</style>
<div class="bjui-row col-2">
    <h3>访问地址</h3>
    <div class="bjui-row col-2">
        <label class="row-label" style="width:100px">Url</label>
        <input style="width:40%" type="text" name="visitUrl" value="{{$visitUrl}}" id="visitUrl">
    </div>

    <h3>header头</h3>
    <label class="row-label" style="width:100px">TOKEN</label>
    <input style="width:40%" type="text" name="visitToken" value="{{$visitToken}}" id="visitToken">

    <label class="row-label" style="width:100px">IMEI</label>
    <input style="width:40%" type="text" name="visitImei" value="{{$visitImei}}" id="visitImei">
    <hr>

    <h3>传值</h3>
    <div class="bjui-row col-2">
            <label style="width:100px" class="row-label">get值</label>
            <input style="width:40%" type="text" name="visitGetParam" value="{{$visitGetParam}}" id="visitGetParam">
        
            <label style="width:100px" class="row-label">post值</label>
            <input style="width:40%" type="text" name="visitPostParam" value="{{$visitPostParam}}" id="visitPostParam">
    </div>
    <hr>

    <h3>返回值</h3><button type="button" class="btn-orange" style="float:right" onclick="mytextToggle()">隐藏/展示</button>
    <textarea id="mytext" style="height:350px;">{{$output}}</textarea>
    <script>
        function mytextToggle(){
            $('#mytext').toggle();
        }
    </script>

    <h3>HTML展示</h3>
    <div class="bjui-row col-2">
        <?php echo  $output?>
    </div>
</div>
</form>
</div>

<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-default" data-icon="save" onclick="analogTestSubmit();">提交</button></li>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
    </ul>
</div>
<script>
    function analogTestSubmit() {
        var visitUrl = $("#visitUrl").val();
        var visitGetParam = $("#visitGetParam").val();
        var visitPostParam = $("#visitPostParam").val();
        var visitToken = $("#visitToken").val();
        var visitImei = $("#visitImei").val();
        BJUI.dialog({
            id:'analog_test_dialog',
            data:{_token:'{{csrf_token()}}',visitUrl:visitUrl,visitGetParam:visitGetParam,visitPostParam:visitPostParam,visitToken:visitToken,visitImei:visitImei},
            url:'/nginx/analogTest',
            title:'模拟访问',
            width:1300,
            height:1000
        })

    }
</script>